package com.atom.app.lifecycle.base

import android.content.Intent
import android.view.KeyEvent
import com.atom.app.lifecycle.DebugActivity
import com.atom.module.mvvm.base.ApiModel
import com.atom.module.mvvm.base.viewmodel.AbstractBaseViewModel

open class AppViewModel<M : ApiModel>(model: M) : AbstractBaseViewModel<M>(model) {

    open fun onKeyDown(keyCode: Int, event: KeyEvent?) {
        startActivity(DebugActivity::class.java)
    }

    open fun onActivityResult(requestCode: Int, resultCode: Int, data: Intent?) {

    }

}
